/*
Include paths
	C:/Users/Icarus/TI LaunchPad/driverlib/driverlib
	C:\StellarisWare\inc\
	*/

#include "C:/Users/Icarus/TI LaunchPad/driverlib/inc/hw_memmap.h"
#include "C:/Users/Icarus/TI LaunchPad/driverlib/inc/hw_types.h"
#include "C:/Users/Icarus/TI LaunchPad/driverlib/driverlib/debug.h"
#include "C:/Users/Icarus/TI LaunchPad/driverlib/driverlib/gpio.h"
#include "C:/Users/Icarus/TI LaunchPad/driverlib/driverlib/sysctl.h"
#include "C:\Users\Icarus\TI LaunchPad\driverlib\driverlib\uart.h"
#include <stdarg.h>
#include "C:\StellarisWare\inc\lm4f120h5qr.h"
#include <stdio.h>
//#include "C:\StellarisWare\utils\uartstdio.h"
// processor definitions
#define LED_RED 0x2
#define LED_BLUE 0x4
#define LED_GREEN 0x8




void main()
{
	//from http://software-dl.ti.com/trainingTTO/trainingTTO_public_sw/GSW-Stellaris-LaunchPad/StellarisLaunchPadWorkbook.pdf
	SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN); //setting system clock


}

























	/*
	printf("Hello World!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");

	  // enable PORT F GPIO peripheral
	  SYSCTL_RCGC2_R = SYSCTL_RCGC2_GPIOF;
	  // set LED PORT F pins as outputs
	  GPIO_PORTF_DIR_R = LED_RED|LED_BLUE|LED_GREEN;
	  // enable digital for LED PORT F pins
	  GPIO_PORTF_DEN_R = LED_RED|LED_BLUE|LED_GREEN;
	  // clear all PORT F pins
	  GPIO_PORTF_DATA_R = 0;
	  // set LED PORT F pins high
	  GPIO_PORTF_DATA_R |= LED_RED|LED_BLUE|LED_GREEN;
	  // loop forever

	  //enable gpio on port
	  SYSCTL_RCGC2_R |= SYSCTL_RCGC2_GPIOC;
	  //set directon on port
	  GPIO_PORTA_DIR_R = GPIO_PIN_2;
	  //
	  GPIO_PORTA_DEN_R = GPIO_PIN_2;
	  enablePin();

	  enablePin();
	  enablePin();
	  disablePin();
	  enablePin();
	  enablePin();

	  disablePin();


	  enablePin();

	  	  disablePin();


	  	enablePin();

	  		  disablePin();



	  while(1)
	  {
		  //GPIO_PORTF_DATA_R = 0;
		  //GPIO_PORTF_DATA_R = LED_RED;
		  //GPIO_PORTF_DATA_R = 0;
		  //GPIO_PORTF_DATA_R = LED_BLUE;

		  GPIO_PORTA_DATA_R = GPIO_PIN_2;
		  GPIO_PORTF_DATA_R = LED_RED;


		  GPIO_PORTA_DATA_R = 0;
		  GPIO_PORTF_DATA_R = LED_BLUE;
		  //write high on pin A2
		  //GPIOPinWrite(GPIO_PORTA_BASE,GPIO_PIN_2,1);

		  //write low on pin A2
		  //GPIOPinWrite(GPIO_PORTA_BASE,GPIO_PIN_2,0);

	  }







	return;*/
